<!--
This file contains the changes suggested for the Custom Control to work.
1.  A new field is needed.  One to point to the parent work item.
2.  A change is needed in the Layout to include the custom control
-->
<?xml version="1.0" encoding="utf-8"?>
<WITD application="Work item type editor" version="1.0">
  <WORKITEMTYPE name="Task">
    <DESCRIPTION>Includes information to track the task through the Development life cycle.</DESCRIPTION>
    <FIELDS>
      <FIELD type="Integer" name="Parent Work Item" refname="ParentWorkItem">
        <HELPTEXT>Link to parent Work Item</HELPTEXT>
      </FIELD>
    </FIELDS>
    <FORM>
      <Layout>
        <TabGroup>
          <Tab Label="Work Item Hierarchy">
            <Group>
              <Column PercentWidth="15">
                <Control FieldName="ParentWorkItem" Type="WorkItemIdReference" Label="&amp;Parent Work item:" LabelPosition="Left" NumberFormat="WholeNumbers" MaxLength="10" />
              </Column>
              <Column PercentWidth="5" />
              <Column PercentWidth="80">
								<!-- I used System.Id here because a field is needed that is not already on the form. -->
                <Control FieldName="System.Id" Type="WorkItemHierarchy" Label="&amp;Child Work Items:" LabelPosition="Top" Dock="Fill" />
              </Column>
            </Group>
          </Tab>
        </TabGroup>
      </Layout>
    </FORM>
  </WORKITEMTYPE>
</WITD>
